package com.yihuier.yihuier.Mapper.Common;

import org.apache.ibatis.annotations.*;

@Mapper
public interface FileUploadMapper {

    @Update("UPDATE bz_user SET user_headpic_dir = #{user_header_pic} WHERE user_id = #{id};")
    int setUserHeaderPic(@Param("id") int id ,@Param("user_header_pic") String user_header_pic);

    @Update("UPDATE bz_room SET room_pic_url = #{room_pic_url} WHERE room_id = #{id};")
    int setRoomPic(@Param("id")int id ,@Param("room_pic_url") String room_pic_url);

    @Insert("INSERT INTO bz_meeting_data(data_meetingid,data_name,data_type,data_address,data_status) VALUES(#{meeting_id},#{data_name},#{data_type},#{data_address},1);")
    int addMeetingData(@Param("meeting_id") int meeting_id,@Param("data_name")String data_name,@Param("data_type") short data_type,@Param("data_address") String data_address);
}
